<?if($student_remarks):?>
	<table class="table table-bordered table-stripped">
		<tr class="info">
			<? if(!empty($grading_periods)) :?>
				<? foreach($grading_periods as $row) :?>
					<td><strong><?= ucwords(strtolower($row->gp_desc.' Remarks')) ;?></strong></td>
				<? endforeach ;?>
			<? endif ;?>
		</tr>
		<?if($student_remarks):?>
			<tr>
			<?foreach($student_remarks as $k => $b ):?>
					<td><?=$b->remarks;?></td>
			<?endforeach;?>
			</tr>
		<?else:?>
		<tr>
			<td colspan="4">No Remarks Found. or you are not allowed to view remarks.</td>
		</tr>
		<?endif;?>
	</table>

<?else:?>
	<code>
			Unable to get student remarks. Because 1). Student is not assigned to a section, 2) student is not allowed to view grades and remarks.
	</code>
<?endif;?>